package org.dromara.demo.designPattern.srp;

import org.dromara.demo.designPattern.srp.service.impl.GuestVideoUserService;
import org.dromara.demo.designPattern.srp.service.impl.OrdinaryVideoUserService;
import org.dromara.demo.designPattern.srp.service.impl.VipVideoUserService;
import org.junit.Test;

public class ApiTest {
    @Test
    public void test_serveGrade(){
        VideoUserService service = new VideoUserService();
        service.serveGrade("VIP用户");
        service.serveGrade("普通用户");
        service.serveGrade("访客用户");
    }

    public void test_stp(){
        GuestVideoUserService guest = new GuestVideoUserService();
        guest.definition();
        guest.advertisement();


        OrdinaryVideoUserService ordinary= new OrdinaryVideoUserService();
        ordinary.definition();
        ordinary.advertisement();


        VipVideoUserService vip= new VipVideoUserService();
        vip.definition();
        vip.advertisement();

    }
}
